package action.contract;


import java.util.List;

import service.contract.ContractService;


import core.action.BaseAction;

public class AllRelationAction extends BaseAction{
	private ContractService contractService;
	private List<?> ensurelist;
	private List<?> relationlist;
	private String type;
	private String title;
	
	public String execute(){
		return "success";
	}
	public String getEnsure(){
		ensurelist=contractService.show_ensureRelation(0);
		return "ensure";
	}
	public String getMortgage(){
		relationlist=contractService.showRelation(0,1);
		title="抵押";
		type="2";
		return "relation";
	}
	public String getPledge(){
		relationlist=contractService.showRelation(0,2);
		title="质押";
		type="3";
		return "relation";
	}
	
	
	//=================GET/SET====================//
	
	public ContractService getContractService() {
		return contractService;
	}
	public void setContractService(ContractService contractService) {
		this.contractService = contractService;
	}
	public List<?> getEnsurelist() {
		return ensurelist;
	}
	public void setEnsurelist(List<?> ensurelist) {
		this.ensurelist = ensurelist;
	}
	public List<?> getRelationlist() {
		return relationlist;
	}
	public void setRelationlist(List<?> relationlist) {
		this.relationlist = relationlist;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
}
